Central Article

The mDialogBox Component: Not Your Father's Dialog Box


Phillip Kerman

Phillip Kerman

phillipkerman.com

Table of Contents

  1. Introduction
  2. Understanding the mDialogBox Structure
  3. Putting mDialogBox to Work
  4. mDialogBox Tips

As a developer, you know how convenient components are because you don't have build custom solutions for common tasks. Even more important, however, is what components mean to end users. Components offer users a consistent approach to getting their work done, so they don't have to figure out each and every custom interface element that developers create.

This imposed consistency is even truer with components in Macromedia Central because many styles are not customizable (for example, typefaces are not changeable). Although this means users will become familiar with Central applications quicker, it appears to mean that, as a developer, you're stuck with fewer options. In fact, however, whatever style limitations Central components have they more than make up for it by giving you tons of ways to customize their functionality.

Take the case of the mDialogBox component. Here you have a really sophisticated component in a seemingly simple package. Here are the most appropriate uses for mDialogBox:

  • A modal dialog box, which the user can't proceed from until first making a selection
  • An optional dialog box, though there are other ways to achieve this, such as regular buttons
  • A multipage dialog box for related options such as user preferences

This article shows you how to build interactions such as these after first explaining how to populate and modify an mDialogBox component.

Requirements

To complete this tutorial you will need to install the following software and files:

Macromedia Central

Install Central now (free) ›

Macromedia Central SDK

Download it now

Macromedia Flash MX 2004


Tutorials and sample files:



About the author

Phillip Kerman is a Macromedia Flash programmer and author of the best-selling Sams Teach Yourself Macromedia Flash 24 Hours, ActionScripting in Flash, and the new book Flash MX 2004 for Rich Internet Applications. He also conducts Macromedia Flash training workshops around the world. He used Macromedia Flash Communication Server MX and Flash Remoting to program a real-time auction for www.stampedecattle.com that sells millions of dollars worth of cattle per hour. His site www.phillipkerman.com includes several Communication Server examples.